/*
* Poppy Game Engine - https://pgetemplate.googlecode.com/svn/
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2008 Poppy
*/

#include "stdafx.h"
#include "CPSPDriver.h"

namespace PGERenderer
{
		
	CPSPDriver::CPSPDriver()
	{
		m_pData = NULL;
		m_bIsInited = false;
	}

	CPSPDriver::~CPSPDriver()
	{
		if(m_bIsInited) TermGraphicSystem();
	}

	CPSPDriver* CPSPDriver::GetInstance()
	{
		if(!m_pInstance)
			m_pInstance = new CPSPDriver();
		return m_pInstance;
	}

	void CPSPDriver::Release()
	{
		SAFE_DELETE(m_pInstance);
	}

	CPSPDriver* CPSPDriver::m_pInstance = NULL;

}

